import request from "@/utils/request";
import { Resource } from "@/utils/resource";
import type { Tarot } from "@/utils/result";

export class WeatherRequest {
  public search: any;
  public element: any;

  constructor(search: any, element: any) {
    this.search = search;
    this.element = element;
  }
}

export const Weather: any = (params: WeatherRequest) => {
  return request.upload<Tarot.ResultResponse>(
    Resource.WEATHER_FILE,
    params.element,
    params.search,
  );
};
